package com.fivestar.pmanager.core.service;

import java.util.List;
import com.fivestar.pmanager.core.base.BaseBean;

import com.fivestar.pmanager.core.base.PageBean;
public interface PaginatingService<T extends BaseBean>
{
    // for pagination
    int getCountOfPage(T parameter_);


    // for pagination
    List<T> getListOfPage(T parameter_);
    
    /**
     * 分页定义
     *
     * @return
     * @throws
     */
    void page(T parameter_ , PageBean page);


    void page(T parameter_, PageBean page, String countMethodName,
            String listMethodName) throws Exception;

    void advancedPage(T parameter_, PageBean page);

    void advancedPage(T parameter_, PageBean page, String listMethod);
    
}
